<!DOCTYPE html "http://www.thymeleaf.org/dtd/xhtml1-strict-thymeleaf-spring4-4.dtd">

<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:th="http://www.thymeleaf.org">


<meta charset="utf-8">
<head th:include="include :: header"></head>
<body class="gray-bg">
<div class="wrapper wrapper-content ">
    <div class="row">
        <div class="col-sm-12">
            <div class="ibox float-e-margins">
                <div class="ibox-content">
                    <form class="form-horizontal m-t" id="signupForm">
                        <div class="form-group">
                            <label class="col-sm-2 control-label">会员名称：</label>
                            <div class="col-sm-10">
                                <input id="nickName" name="nickName" th:value="${couponInfo.nickName}"
                                       class="form-control" type="text" readonly="readonly">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">会员手机：</label>
                            <div class="col-sm-10">
                                <input type="text" id="phone" name="phone" th:value="${couponInfo.phone}"
                                        class="form-control" readonly="readonly" >
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">优惠卷名称：</label>
                            <div class="col-sm-10">
                                <input type="text" id="couponName" name="couponName" th:value="${couponInfo.couponName}"
                                        class="form-control" readonly="readonly" >
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">发放时间：</label>
                            <div class="col-sm-10">
                                <input type="text" id="receiveTime" name="receiveTime" th:value="${#dates.format(couponInfo.receiveTime,'yyyy-MM-dd HH:mm:ss')}"
                                        class="form-control" readonly="readonly" >
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">有效期开始时间：</label>
                            <div class="col-sm-10">
                                <input type="text" id="expireBeginDate" name="expireBeginDate" th:value="${#dates.format(couponInfo.expireBeginDate,'yyyy-MM-dd HH:mm:ss')}"
                                        class="form-control" readonly="readonly" th:if="${couponInfo.expireBeginDate}" >
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">有效期结束时间：</label>
                            <div class="col-sm-10">
                                <input type="text" id="expireEndDate" name="expireEndDate" th:value="${#dates.format(couponInfo.expireEndDate,'yyyy-MM-dd HH:mm:ss')}"
                                       class="form-control" readonly="readonly"  th:if="${couponInfo.expireEndDate}" >
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">优惠卷状态：</label>
                            <div class="col-sm-10">
                                <select name="couponStatus" id="couponStatus" class="form-control"
                                        th:field="${couponInfo.couponStatus}" disabled="disabled">
                                    <option value="">--状态--</option>
                                    <option value="0">未使用</option>
                                    <option value="1">已使用</option>
                                    <option value="2">已过期</option>
                                    <option value="3">已作废</option>
                                    <option value="9">待领取</option>
                                </select>
                            </div>
                        </div>
                        <div class="form-group" th:if="${couponInfo.useTime}">
                            <label class="col-sm-2 control-label">优惠卷使用时间：</label>
                            <div class="col-sm-10">
                                <input type="text" id="useTime" name="useTime" th:value="${#dates.format(couponInfo.useTime,'yyyy-MM-dd HH:mm:ss')}"
                                       class="form-control" readonly="readonly" >
                            </div>
                        </div>
                        <div class="form-group" th:if="${couponInfo.useOrderId}">
                            <label class="col-sm-2 control-label">使用订单号：</label>
                            <div class="col-sm-10">
                                <input type="text" id="useOrderId" name="useOrderId" th:value="${couponInfo.useOrderId}"
                                       class="form-control" readonly="readonly" >
                            </div>
                        </div>

                    </form>
                </div>
            </div>
        </div>
    </div>
</div>
<div th:include="include::footer"></div>
</body>
</html>